package com.nsqt.biz.service.impl;

import com.nsqt.biz.dao.AgentDao;
import com.nsqt.biz.domain.AgentDO;
import com.nsqt.biz.service.AgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AgentServiceImpl implements AgentService {
    @Autowired
    private AgentDao agentDao;

    @Override
    public AgentDO getByName(String name) {
        return agentDao.getByName(name);
    }

    ;

    @Override
    public AgentDO get(Long id) {
        return agentDao.get(id);
    }

    @Override
    public List<AgentDO> list(Map<String, Object> map) {
        return agentDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return agentDao.count(map);
    }

    @Override
    public int save(AgentDO agent) {
        return agentDao.save(agent);
    }

    @Override
    public int update(AgentDO agent) {
        return agentDao.update(agent);
    }

    @Override
    public int remove(Long id) {
        return agentDao.remove(id);
    }

    @Override
    public int batchRemove(Long[] ids) {
        return agentDao.batchRemove(ids);
    }

}
